<?php
namespace Minhsang\ModelBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

/**
 * @author sangdm
 */
class BaseEntity{
	/**
	 * @ORM\Column(type="integer")
	 * @ORM\Id
	 * @ORM\GeneratedValue(strategy="AUTO")
	 */
	protected $id;
	
	/**
	 * @ORM\Column(type="string", length=255)
	 */
	protected 	$name;
	
	/**
	 * @ORM\Column(type="text", nullable=false)
	 * @var string
	 */
	protected $description;
	
	/**
	 * @ORM\Column(type="datetime")
	 * @var datetime
	 */
	protected $date_create;
	
	/**
	 * @ORM\Column(type="integer", length=1)
	 * @var integer
	 */
	protected $status;
	
	/**
	 * @ORM\Column(type="integer")
	 * @var integer
	 */
	protected $owner;
	
	/**
	 * @ORM\Column(type="integer")
	 * @var integer
	 */
	protected $modified_by;
	
	/**
	 * @ORM\Column(type="datetime", nullable=true)
	 * @var datetime
	 */
	protected $modified_date;
	
	/**
	 * @ORM\Column(type="integer", nullable=true)
	 * @var integer
	 */
	protected $ordering;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return BaseEntity
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set description
     *
     * @param string $description
     * @return BaseEntity
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get description
     *
     * @return string 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set date_create
     *
     * @param \DateTime $dateCreate
     * @return BaseEntity
     */
    public function setDateCreate($dateCreate)
    {
        $this->date_create = $dateCreate;

        return $this;
    }

    /**
     * Get date_create
     *
     * @return \DateTime 
     */
    public function getDateCreate()
    {
        return $this->date_create;
    }

    /**
     * Set status
     *
     * @param integer $status
     * @return BaseEntity
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return integer 
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set owner
     *
     * @param integer $owner
     * @return BaseEntity
     */
    public function setOwner($owner)
    {
        $this->owner = $owner;

        return $this;
    }

    /**
     * Get owner
     *
     * @return integer 
     */
    public function getOwner()
    {
        return $this->owner;
    }

    /**
     * Set modified_by
     *
     * @param integer $modifiedBy
     * @return BaseEntity
     */
    public function setModifiedBy($modifiedBy)
    {
        $this->modified_by = $modifiedBy;

        return $this;
    }

    /**
     * Get modified_by
     *
     * @return integer 
     */
    public function getModifiedBy()
    {
        return $this->modified_by;
    }

    /**
     * Set modified_date
     *
     * @param \DateTime $modifiedDate
     * @return BaseEntity
     */
    public function setModifiedDate($modifiedDate)
    {
        $this->modified_date = $modifiedDate;

        return $this;
    }

    /**
     * Get modified_date
     *
     * @return \DateTime 
     */
    public function getModifiedDate()
    {
        return $this->modified_date;
    }

    /**
     * Set ordering
     *
     * @param integer $ordering
     * @return BaseEntity
     */
    public function setOrdering($ordering)
    {
        $this->ordering = $ordering;

        return $this;
    }

    /**
     * Get ordering
     *
     * @return integer 
     */
    public function getOrdering()
    {
        return $this->ordering;
    }
}
